<!DOCTYPE html>
<html>
<head>
<title>活动编辑</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet"
	href="/resources/common/css/default/control-manage.css" />
<style type="text/css">
.hide {
	display: none;
}

.inputWidth {
	height: 20px !important;
	width: 250px;
	font-size: 12px;
}

.width25 {
	height: 20px !important;
	width: 25px;
	font-size: 12px;
}

.M-region .s1{
	width:100px;
}


.M-region li {
    margin: 7px 0px;
    display: block;
    float: left;
    width: 100%;
}

.alignleft {
	text-align: left;
	margin: 10px 0 0 10px;
}

.pointer {
	cursor: pointer;
}

.title {
	border: 1px solid gray;
	padding: 2px 10px !important;
}

.order {
	border: 1px solid gray;
	padding: 5px 20px !important;
}

.textinput {
	height: 20px !important;
}

.saveOrderButton {
	padding: 20px 20px 20px 40px;
}

.red {
	color: red;
}

.flexigrid a:link, .flexigrid a, .flexigrid a:visited {
	color: #3b8ac9;
	text-decoration: none;
}
</style>
</head>
<body>
	<div class="Mheader">
		<ul>
			<li>内容管理</li>
			<li class="M_sep">&gt;</li>
			<li>活动管理</li>
		</ul>
	</div>
	<div class="M-region">
		<form id="mainForm" name="mainForm"
			enctype="application/x-www-form-urlencoded" method="post">
			<input type="hidden" value="${game.id}" id="gameId" name="gameId"/>
			<ul>
				<li><span class="s1">名称：</span> <span class="s2"><input type="text" value="${game.title}" maxlength="50" name="title" id="title"/></span></li>
				<li><span class="s1">简介：</span> <span class="s2"><textarea id="simpleDesc" name="simpleDesc" maxlength="200" style="width:300px;height:80px;">${game.simpleDesc}</textarea></span></li>
				<li><span class="s1">详情：</span> <span class="s2"><textarea id="desc" name="desc" maxlength="1024" style="width:300px;height:80px;">${game.desc}</textarea></span></li>
				<li><span class="s1">活动时间：</span> <span class="s2"><input value="${game.beginTimeStr}" type="text" id="beginTime" name="beginTime"/>到</span><input type="text" value="${game.endTimeStr}" id="endTime" name="endTime"/></li>
				<li><span class="s1">上部图：</span> <span class="s2"><input value="${game.headImg}" type="text" name="headImg" id="headImg"/></span><div style="float:left;margin-left:10px;"><input id="headImgUpload" type="button" value="浏览"/></div></li>
				<li><span class="s1">下部图：</span> <span class="s2"><input value="${game.bodyImg}" type="text" name="bodyImg" id="bodyImg"/></span><div style="float:left;margin-left:10px;"><input id="bodyImgUpload" type="button" value="浏览"/></div></li>
				<li><span class="s1">抽奖icon图：</span> <span class="s2"><input value="${game.playImg}" type="text" name="playImg" id="playImg"/></span><div style="float:left;margin-left:10px;"><input id="playImgUpload" type="button" value="浏览"/></div></li>
				<li><span class="s1">背景图：</span> <span class="s2"><input value="${game.bgImg}" type="text" name="bgImg" id="bgImg"/></span><div style="float:left;margin-left:10px;"><input id="bgImgUpload" type="button" value="浏览"/></div></li>
				<li><span class="s1">背景色：</span> <span class="s2"><input value="${game.bgColor}" type="text" maxlength="10" name="bgColor" id="bgColor"/></span></li>
			</ul>
			
		<ul id="prizeUL">
				<li>
					<span class="Mspan-span1">
						<span class="left" >id：</span>
						<span class="right">
							<label>${prize.id}</label>
						</span>
				    </span>
					<span class="Mspan-span1">
				 		<input type="hidden"/> 
						<span class="left">奖品顺序：</span>
						<span class="right"> 
							<label>${prize.sort}</label>
						</span>
					</span>
				 	<span class="Mspan-span1">
				 		<input type="hidden"/> 
						<span class="left">奖品名称：</span>
						<span class="right"> 
							<input type="text" value="${prize.title}" id="prizeTitle" name="prizeTitle" maxlength="20"/>
						</span>
					</span>
					<span class="Mspan-span1">
						<span class="left" >数量：</span>
						<span class="right">
							<input type="text" value="${prize.maxCount}" id="maxCount" name="maxCount" maxlength="10"/>						
						</span>
				    </span>
					<span class="Mspan-span1">
						<span class="left" >中奖率：</span>
						<span class="right">
							<input type="text" value="${prize.probability}" id="probability" name="probability" maxlength="10"/>						
						</span>
				    </span>
					<span class="Mspan-span1">
						<span class="left" >提示语：</span>
						<span class="right">
							<input type="text" value="${prize.showContent}" id="showContent" name="showContent" maxlength="50"/>						
						</span>
				    </span>
					<span class="Mspan-span1">
						<span class="left" >奖品类型：</span>
						<input type="hidden" value="${prize.prizeType}" id="prizeTypeValue" name="prizeTypeValue">
						<span class="right">
							<select id="prizeType" name="prizeType">
								<option value="0">空奖品</option>
								<option value="1">实物奖品</option>
								<option value="2">虚拟奖品</option>
							</select>				
						</span>
				    </span>
				    <span class="Mspan-span1">
						<span class="left" >图片：</span>
						<span class="right">
							<input type="text" value="${prize.img}" id="img" name="img" style="width:400px;"/>
							<input type="button" id="prizePicButton" class="prizePicButton" value="浏览"/>					
						</span>
				    </span>
				</li>
			</ul>
		

			<div style="margin:26px">
				<input type="button" class="Mbutton3" id="saveButton" value="保存" />
				<input id="btBack" type="button" onclick="javascript:history.go(-1)"
					class="Mbutton3" value="返回" />
			</div>

		</form>
	</div>

	<script type="text/javascript"
		src="/resources/common/js/MZPub-video.js"></script>
	<script type="text/javascript"
		src="/resources/video/js/manage/util/VideoResources.js"></script>
	<script type="text/javascript"
		src="/resources/video/js/manage/util/VideoUtil.js"></script>
	<script type="text/javascript" src="/resources/video/js/manage/common/jquery-uploadify.js"></script>
	<script type="text/javascript" src="/resources/video/js/manage/util/upload-setting.js"></script>
	<script type="text/javascript"
		src="/resources/video/js/manage/game/game-modify.js"></script>
</body>
</html>